
const { clipboard } = require("electron");
const btns = document.querySelectorAll("button");
const divs = document.querySelectorAll('div');

btns[0].onclick = function() {
  clipboard.writeText(divs[0].innerText)
  alert("复制成功")
}
btns[1].onclick = function() {
  divs[1].innerText = clipboard.readText()
}
